#include "dictionary.h"

#include <iostream>
#include <string>
#include <fstream>

using namespace std;

int main( void )
{
   Dictionary *dic = new Dictionary();
   fstream inputFile("data/main.dic", ios::in);
   if(!inputFile)
   {
	cerr<<"file open error!\n";
   }
   dic->skipBOM( inputFile );
   string textLine;
   dic->readLine(inputFile, textLine);
   cout<<textLine<<'\t'<<textLine.length()<<endl;
   dic->readLine(inputFile, textLine);
   cout<<textLine<<'\t'<<textLine.length()<<endl;
   inputFile.close();
   return 0;
}
